class User < ActiveRecord::Base
#has_many :friends, :class_name => "Friend", :foreign_key => "user_id" 
#has_many :his_friends, :class_name => "Friend", :foreign_key => "friend_id" 
has_many :connections,
		:foreign_key => "user_id",
		:class_name => "UserConnection",
		:conditions=>["thetime > :thetime",{:thetime=>6.minutes.ago}]
#has_many :connections,
#		:through =>:user_connections_as_user 
#has_many :his_connections, :class_name => "UserConnection", :foreign_key => "friend_id" 
end
